{% extends 'base.html' %}
{% block title %}
    <a class="navbar-brand" href="#"> {{ staff.username }} 的休假信息 </a>
{% endblock %}
{% block content %}
<div class="content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<div class="card">
					<form id="allInputsFormValidation" class="form-horizontal"  method="post" action="{{ url_for('holiday_pass',userID=staff.userID,id=holiday.id) }}">
						<div class="content">
							<h4 class="title"> {{ staff.username }} 的休假信息</h4>

                            <fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label" >姓名</label>
                                    <div class="col-sm-6"style="margin-top: 10px">

                                        {{ staff.username }}
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label" >休假起始年月</label>
                                    <div class="col-sm-6"style="margin-top: 10px">
                                       {{ holiday.starting_time }}
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">休假结束时间</label>
                                    <div class="col-sm-6"style="margin-top: 10px">
                                        {{ holiday.ending_time }}
                                    </div>
                                </div>
							</fieldset>
							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">休假原因</label>
                                    <div class="col-sm-6" style="margin-top: 10px">

                                        {{ holiday.cause }}
                                    </div>
                                </div>
							</fieldset>
                            <fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">申请状态</label>
                                    <div class="col-sm-6"style="margin-top: 10px">
                                        {{ holiday.state }}
                                    </div>
                                </div>
							</fieldset>
                            <div class="card-footer text-center">
                                <input name="pass_state" type="submit" value="通过"  class="btn btn-simple btn-danger btn-icon remove">
                                <a href="{{ url_for('holiday_no_pass',userID=staff.userID,id=holiday.id) }}"
                                       class="btn btn-simple btn-warning btn-icon edit">不通过</a>
                            </div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{% endblock %}